const allTools = ["eval", "eval-cheap-source-map", "eval-source-map", "cheap-source-map",
    "cheap-module-source-map", "source-map", "inline-cheap-source-map", "nosources-source-map"]
const path = require("path")
const HtmlWebpackPlugin = require("html-webpack-plugin")
module.exports = allTools.map(item => ({
    entry: "./index.js",
    output: {
        filename: `js/${item}.js`,
    },
    devtool: item,
    mode: "development",
    module: {
        rules: [{
            test: /\.js$/,
            use: {
                loader: "babel-loader",
                options: {
                    presets: ["@babel/preset-env"]
                }
            }
        }]
    },
    plugins: [new HtmlWebpackPlugin({
        filename: `${item}.html`,

    })]
}))